package com.xxg.renrensearch.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 店铺档案dao
 *
 * @author xuxiaogang
 * @date 2021-11-19
 */
@Mapper
@Component
public interface RenrenShopShopProfileDao {
    /**
     * 根据店铺ID范围查询店铺的档案信息
     *
     * @param start 店铺开始ID
     * @param end   店铺结束ID
     * @return 结果
     */
    @Select("select shop_id as shopId,city_text as cityText from renren_shop_shop_profile where shop_id between #{start} and #{end}")
    List<RenrenShopShopProfile> selectByShopIdRange(@Param("start") int start, @Param("end") int end);
}